<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="classid" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 页面目录 </span>
      </div>
      <el-table :data="classid">
        <el-table-column label="操作" align="center" width='100' type=''>
          <template slot-scope="scope">
            <el-dropdown trigger="click">
              <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>
                  <el-link @click="gotoPage('/mes/systemadmin/OfficeFileMenuSet?category_id='+scope.row.id+''+vueparams+'')">添加到文件菜单</el-link>
                </el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </template>
        </el-table-column>
        <el-table-column label="页面" prop="id">
          <template slot-scope="scope">
            <el-link @click="gotoPage('/mes/systemadmin/OfficeFileMenuSet?category_id='+scope.row.id+''+vueparams+'')" type='primary'>{{scope.row.menumc}}</el-link>
          </template>
        </el-table-column>
      </el-table>
      <el-button @click="cate('&category_id='+scope.row.pid+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回上级</el-button>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'OfficeFileMenuSet',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        classid: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/systemadmin/OfficeFileMenuSet/officeFileMenuSet?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
